﻿using Dapper;
using System;
using BCEntity.Common.Case.WebsiteCaseAttachment;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;

namespace BCData.Common.Case.WebsiteCaseAttachment
{
    /// <summary>
    /// 官网案例附件
    /// </summary>
    public interface IWebsiteCaseAttachmentData
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        /// <param name="websiteCaseAttachmentId">官网案例附件Id</param>
        Task<bool> Exists(int websiteCaseAttachmentId);
        /// <summary>
        /// 增加官网案例附件
        /// </summary>
        /// <param name="entity">官网案例附件信息</param>
        Task<WebsiteCaseAttachmentEntity> Add(WebsiteCaseAttachmentEntity entity);
        /// <summary>
        /// 更新官网案例附件
        /// </summary>
        /// <param name="entity">官网案例附件信息</param>
        Task<WebsiteCaseAttachmentEntity> Update(WebsiteCaseAttachmentEntity entity);
        /// <summary>
        /// 删除官网案例附件
        /// </summary>
        /// <param name="websiteCaseAttachmentId">官网案例附件Id</param>
        Task<bool> Delete(int websiteCaseAttachmentId);
        /// <summary>
        /// 获取官网案例附件列表
        /// </summary>
        Task<IEnumerable<WebsiteCaseAttachmentEntity>> GetList(int websiteCaseId);
        #endregion  成员方法
    }


}